package cn.bjxy.shishaolong.ra_room.service;

import cn.bjxy.shishaolong.ra_room.entity.RaRomDeleteRequest;
import cn.bjxy.shishaolong.ra_room.entity.RaroomRequestRalation;
import cn.bjxy.shishaolong.request_answer.entity.Request;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 答疑室与问题关联 服务类
 * </p>
 *
 * @author 时少龙
 * @since 2019-04-13
 */
public interface IRaroomRequestRalationService extends IService<RaroomRequestRalation> {

    /**
     * 根据答疑室id 查询问题  requestId 必须设置
     *
     * @param request
     * @return
     */
    List<Request> queryRequestForRoomByCondition(Request request);

    /**
     * 根据答疑室id 查询问题  requestId 必须设置  分页
     *
     * @param request
     * @return
     */
    IPage<Request> queryRequestForRoomByCondition(IPage<Request> page, Request request);

    /**
     * 提问
     * @param myRequest
     */
    void request(Request myRequest);

    /**
     * 删除答疑室中问答
     * @param deleteRequest
     */
    void remove(RaRomDeleteRequest deleteRequest);
}
